package com.medical.server.drug.service.impl;

import com.laozj.common.utils.PageUtils;
import com.laozj.common.utils.Query;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.medical.server.drug.dao.DruglistDao;
import com.medical.server.drug.entity.DruglistEntity;
import com.medical.server.drug.service.DruglistService;


@Service("druglistService")
public class DruglistServiceImpl extends ServiceImpl<DruglistDao, DruglistEntity> implements DruglistService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<DruglistEntity> page = this.page(
                new Query<DruglistEntity>().getPage(params),
                new QueryWrapper<DruglistEntity>()
        );

        return new PageUtils(page);
    }

}